import { AxiosResponse } from 'axios'
import { LoginFrom } from '@/types/views/login'
import { ResponseData } from '@/types/api/public'
import request from '@/request'


/**
 * @desc: 获取职位信息
 * @param { Object } 
 */
 export const getJobData = (data: LoginFrom) => {  
    return request({
      url: '/job',
      method: 'get',
      params:data
    })
  }



  /* @desc: 更改职位信息
* @param { Object } 
*/
export const putJobData = (data: LoginFrom) => {
  let datas = {...data}
  console.log(datas);
    
  return request({
    url: '/job/'+datas['id'],
    method: 'put',
    data:{...datas}
  })
}

  /* @desc: 职位信息删除
* @param { Object } 
*/
export const delJobData = (data: LoginFrom) => {
  return request({
    url: '/job/'+data,
    method: 'delete',
  })
}